<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="">
    <input type="hidden" name="pid" id="pid" th:value="${person.pid}">
    用户名:<input id="pname" name="pname" th:value="${person.pname}"><br>
    生日:<input id="birth" type="date" name="birth" class="Wdate" th:value="${#dates.format(person.birth,'yyyy-MM-dd')}" onclick="WdatePicker()"><br>

    角色:
    <th:block th:each="role : ${roleList}">
        <input name="roleIds"  type="checkbox" th:value="${role.roleId}" th:checked="${roleIds.contains(role.roleId)}">[[${role.roleName}]]
    </th:block>
</form>
</body>
</html>